<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$lngpack.ordertitle%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/goods/style/tempates_div.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/public.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/pagebotton.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]js/jquery.js"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js"></script>
<!--[if IE 6]>
<style type="text/css" media="screen">
body {behavior:url("[%$url%]templates/goods/style/csshover.htc"); }
</style>
<![endif]-->
</head>

<body>
<div class="head">
	[%include file="goods/en/public/head.html"%]
	[%if $out=='buylist'%]
	<!--购物车列表-->
	<script type="text/javascript">
		var order_amout_err = "[%$lngpack.order_amout_err%]";
	</script>
	<!--当前浏览位置-->
	<div class="framecenter">
		<div class="location">[%$lngpack.ordertitle%] ＞ <b>Shopping Cart View</b></div>
	</div>
	<div class="framecenter margintop8">
			<table style="width:90%;margin:0px auto;margin-top:30px;margin-bottom:30px;">
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/cart_go.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Shopping Cart View</span></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						[% if count($array) > 0 %]
						<form name="mainform" method="post" action="[%$mlink.orderupdae%]">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
								<td class="td01 center">Trade Name</td>
								<td class="td01 center">Product Number</td>
								<td class="td01 center">Order Price</td>
								<td class="td01 center">Quantity</td>
								<td class="td01 center">Subtotal</td>
								<td class="td01 center">Operating</td>
							</tr>
							[%forlist from=$array key=i%]
							<tr>
								<td class="td02 center"><a target="_blank" class="infolink05" href="[%$array[i].link%]">[%$array[i].title%]</a></td>
								<td class="td02 center">[%$array[i].tsn%]</td>
								<td class="td02 center">
									[%$moneytype%][%$array[i].bprice%]
									<input type="hidden" name="bprice[]" value="[%$array[i].bprice%]">
									<input type="hidden" name="did[]" value="[%$array[i].did%]">
								</td>
								<td class="td02 center">
									<input type="text" name="amount[]" id="amount[%$array[i].did%]" value="[%$array[i].amount%]" onBlur="javascript:orderamount([%$array[i].did%]);" size="2" maxlength="5" class="infoInput">
								</td>
								<td class="td02 center">
									[%$moneytype%][%$array[i].countprice%]
									<input type="hidden" name="countprice[]" id="countprice" value="[%$array[i].countprice%]">
								</td>
								<td class="td02 center"><a class="infolink04" href="javascript:if (confirm('Are you sure you removed the goods from the shopping cart you?')) location.href='[%$array[i].dellink%]';">Delete</a></td>
							</tr>
							[%/forlist%]
							<tr>
								<td colspan="6" class="td02 right"><span class="font05 colorgreg strong">The total amount of goods:[%$moneytype%][%$ordertotal%]</span></td>
							</tr>
							<tr class="tdheight4">
								<td colspan="6" class="td02 right">
									<input type="submit" class="buttonface" name="Submit" value="Update">&nbsp;
									<input name="addch" class="buttonface" type="button" value="Empty Cart" onclick="javascript:if (confirm('Are you sure you want to clear the goods you buy?')) location.href='[%$mlink.clearcart%]';">
								</td>
							</tr>
							<tr>
								<td colspan="6" class="td02 center">
									<table class="tablelist" width="100%" style="margin:0 auto;">
										<tr>
											<td class="left"><input name="addch" class="buttonface" type="button" value="Continue shopping" onclick="javascript:location.href='[%$homelink%]';"></td>
											<td class="right"><input name="addch" class="buttonface" type="button" value="Clearing" onclick="javascript:location.href='[%$mlink.orderpay%]';"></td>										</tr>
									</table>


								</td>
							</tr>
						</table>
						</form>
						[%else%]
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
								<td colspan="6" class="td02 center">You have not selected commodities</td>
							</tr>
						</table>
						[%/if%]
					</td>
				</tr>
			</table>
	</div>
	[%elseif $out=='buyedit'%]
	<!--购物车信息填写-->
	<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
	<script type="text/javascript">
	$(function() {
		sec_cityone('[%$member.country%]','[%$member.province%]');
		sec_citytwo('[%$member.province%]','[%$member.city%]');
		sec_district('[%$member.city%]','[%$member.district%]');
	});
	var citytwo_title = "[%$lngpack.citytwo_title%]";
	var citythree_title = "[%$lngpack.citythree_title%]";
	var district_title = "[%$lngpack.district_title%]";
	var count_city_err = "[%$lngpack.count_city_err%]";
	var address_title = "[%$lngpack.address_title%]";
	var zipcode_empty = "[%$lngpack.zipcode_empty%]";
	var alias_empty = "[%$lngpack.alias_empty%]";
	var email_err = "[%$lngpack.email_err%]";
	var tel_empty = "[%$lngpack.tel_empty%]";
	</script>
	<div class="framecenter">
		<div class="location">[%$lngpack.ordertitle%] ＞ <b>Completion of the receipt of information</b></div>
	</div>
	<div class="framecenter margintop8">
			<form name="ordersaveform" method="post" action="[%$mlink.ordersave%]" onsubmit="return ordersave()">
			<input type="hidden" name="userid" value="[%$member.userid%]">
			<input type="hidden" name="productmoney" value="[%$productmoney%]">
			<input type="hidden" name="discount_productmoney" value="[%$discount_productmoney%]">
			<input type="hidden" name="discountmoney" value="[%$discountmoney%]">
			<table style="width:90%;margin:0px auto;margin-top:30px;margin-bottom:30px;">
				<tr>
					<td>
						<table width="100%">
							<tr>
								<td width="5%"><span class="messicon"><img src="[%$url%]templates/goods/images/cart_go.gif" /></span></td>
								<td width="50%" class="left"><span class="messtext strong fontsize14">Completion of the receipt of information</span> </td>
								<td class="right"><a class="linimage" href="[%$mlink.buylist%]">Modify the list of goods ordered</a></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				[% if count($array) > 0 %]
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
								<td class="td01 center">Trade Name</td>
								<td class="td01 center">Product Number</td>
								<td class="td01 center">Order Price</td>
								<td class="td01 center">Quantity</td>
								<td class="td01 center">Subtotal</td>
							</tr>
							[%forlist from=$array key=i%]
							<tr>
								<td class="td02 center">
									<input type="hidden" name="ptitle[]" value="[%$array[i].title%]">
									<a target="_blank" class="infolink05" href="[%$array[i].link%]">[%$array[i].title%]</a>
								</td>
								<td class="td02 center"><input type="hidden" name="tsn[]" value="[%$array[i].tsn%]">[%$array[i].tsn%]</td>
								<td class="td02 center">
									[%$moneytype%][%$array[i].bprice%]
									<input type="hidden" name="bprice[]" value="[%$array[i].bprice%]">
									<input type="hidden" name="oprice[]" value="[%$array[i].oprice%]">
									<input type="hidden" name="did[]" value="[%$array[i].did%]">
								</td>
								<td class="td02 center">[%$array[i].amount%]<input type="hidden" name="amount[]" id="orderhow" value="[%$array[i].amount%]"></td>
								<td class="td02 center">[%$moneytype%][%$array[i].countprice%]<input type="hidden" name="countprice[]" id="countprice" value="[%$array[i].countprice%]"></td>
							</tr>
							[%/forlist%]
							<tr>
								<td colspan="6" class="td02 right"><span class="font05 colorgreg strong">The total amount of goods:[%$moneytype%][%$productmoney_f%] - Discount[%$moneytype%][%$discountmoney%] = [%$moneytype%][%$discount_productmoney_f%]</span></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Completion of the receipt of information</span> </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
							    <td class="td02 right" width="20%">Recipient Name：</td>
							    <td class="td02 left"><input type="text" name="alias" value="[%$member.alias%]" maxlength="50" size="20" class="infoInput"></td>
							</tr>
							<tr>
							    <td class="td02 right">E-mail：</td>
							    <td class="td02 left"><input type="text" name="email" value="[%$member.email%]" maxlength="100" size="50" class="infoInput"></td>
							</tr>
							<tr>
							    <td class="td02 right">Address：</td>
							    <td class="td02 left">
								<select size="1" name="cityone" class="select" id="cityone">
								    <option value="0" [%if $member.country==0%]selected[%/if%]>[%$lngpack.cityone_title%]</option>
								    <option value="1" [%if $member.country==1%]selected[%/if%]>CHINA</option>
								</select>
								<select size="1" name="citytwo" class="select" id="citytwo">
								    <option selected value="0">[%$lngpack.citytwo_title%]</option>
								</select>
								<select size="1" name="citythree" class="select" id="citythree">
								    <option selected value="0">[%$lngpack.citythree_title%]</option>
								</select>
								<select size="1" name="district" class="select" id="district">
								    <option selected value="0">[%$lngpack.district_title%]</option>
								</select>
								<span id="loading">Loading</span>
							    </td>
							</tr>
							<tr>
								<td class="td02 right">Address：</td>
								<td class="td02 left"><input type="text" name="address" value="[%$member.address%]" maxlength="120" size="60" class="infoInput"></td>
							</tr>
							<tr>
								<td class="td02 right">ZipCode：</td>
								<td class="td02 left"><input type="text" name="zipcode" value="[%$member.zipcode%]" maxlength="10" size="10" class="infoInput"></td>
							</tr>
							<tr>
							    <td class="td02 right">TEL：</td>
							    <td class="td02 left"><input type="text" name="tel" value="[%$member.tel%]" maxlength="50" size="50" class="infoInput"></td>
							</tr>
							<tr>
							    <td class="td02 right">Mobile：</td>
							    <td class="td02 left"><input type="text" name="mobile" value="[%$member.mobile%]" maxlength="50" size="50" class="infoInput"></td>
							</tr>
							<tr>
							    <td class="td02 right">Sendtime：</td>
							    <td class="td02 left">
								<select size="1" name="sendtime" class="select">
								    <option value="1" selected>Working day, weekend and holiday delivery available</option>
								    <option value="2">Only weekends, holidays and delivery (working days do not send)</option>
								    <option value="3">Only working days delivery (weekends, holidays do not send)</option>
								    <option value="4">Try to arrange delivery time, please Remarks</option>
								</select>
							    </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Delivery mode</span> </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							[% if count($shipplug) > 0 %]
							[%forlist from=$shipplug key=i%]
							<tr>
							    <td class="td02 right" width="20%">[%$shipplug[i].title%]</td>
							    <td class="td02 left">
								    <input type="radio" name="osid" value="[%$shipplug[i].osid%]"[%if $shipplug[i].selected==selected%] checked[%/if%]>
							            Shipping:[%$moneytype%][%$shipplug[i].price%] <BR>[%$shipplug[i].content%]
							    </td>
							</tr>
							[%/forlist%]
							[%else%]
							<tr>
							    <td class="center">No delivery methods</td>
							</tr>
							[%/if%]
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Payment</span> </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							[% if count($payplug) > 0 %]
							[%forlist from=$payplug key=i%]
							<tr>
							    <td class="td02 right" width="20%">[%$payplug[i].payname%]</td>
							    <td class="td02 left">
								    <input type="radio" name="opid" value="[%$payplug[i].opid%]"[%if $payplug[i].selected==selected%] checked[%/if%]>
							            Fee ratio：[%$payplug[i].payis%]% <BR>[%$payplug[i].paycontent%]
							    </td>
							</tr>
							[%/forlist%]
							[%else%]
							<tr>
							    <td class="center">No payment</td>
							</tr>
							[%/if%]
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Other information</span> </td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
							    <td class="td02 right" width="20%">Notes：</td>
							    <td class="td02 left"><textarea name="content" rows="3" cols="60"></textarea></td>
							</tr>
							<tr>
							    <td class="td02 right" width="20%">Invoice：</td>
							    <td class="td02 left"><input type="text" name="invpayee" maxlength="30" size="40" class="infoInput" /></td>
							</tr>
							<tr>
							    <td class="td02 right" width="20%">An invoice：</td>
							    <td class="td02 left"><input type="text" name="invcontent" maxlength="30" size="20" class="infoInput" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="center" style="padding-top:20px"><input type="submit" name="submit" id="submit" class="buttonface" value="Submit"></td>
				</tr>
				[%else%]
				<tr>
					<td style="padding-top:10px">
					<table class="tablelist" width="100%" style="margin:0 auto;">
						<tr>
							<td colspan="6" class="td02 center">You have not selected commodities!</td>
						</tr>
					</table>
					</td>
				</tr>
				[%/if%]
			</table>
		</form>
	</div>
	[%elseif $out=='buyok'%]
	<!--订购成功_结算信息-->
	<div class="framecenter">
		<div class="location">[%$lngpack.ordertitle%] ＞ <b>Submitted Successfully</b></div>
	</div>
	<div class="framecenter margintop8">
			<table style="width:90%;margin:0px auto;margin-top:30px;margin-bottom:30px;">
				<tr>
					<td>
						<table>
							<tr>
								<td><span class="messicon"><img src="[%$url%]templates/goods/images/cart_go.gif" /></span></td>
								<td><span class="messtext strong fontsize14">Congratulations, your order has been submitted successfully, please remember your order number:<span class="colorgreg">[%$ordersn%]</span></span></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><hr class="hrline"/></td>
				</tr>
				<tr>
					<td style="padding-top:10px">
						<table class="tablelist" width="100%" style="margin:0 auto;">
							<tr>
								<td class="td02 center">The total amount of your order: Total goods[%$moneytype%][%$discount%] + Mailing costs[%$moneytype%][%$shipprice%] + Payment of fees[%$moneytype%][%$payprice%] = <span class="colorgreg">[%$moneytype%][%$orderamount%]</span></td>
							</tr>
							<tr>
								<td class="td02 center">[%$orderonline%]</td>
							</tr>
							<tr>
								<td class="td02 center">You can go to:<a class="infolink06" href="[%$mlink.center%]">Member Center</a> OR <a class="infolink06" href="[%$homelink%]">Return to the site first</a></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
	</div>
	[%/if%]
	<!--版权声明-->
	[%include file="goods/en/public/fotter.html"%]
</div>

</body>

</html>
